<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" th:href="@{/css/main.css}" />
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet"  crossorigin="anonymous">
    <title>SpringMVC5+Thymeleaf示例</title>
</head>
<body>
<h2>Student</h2>

<table class="table table-dark table-striped" >
    <tr >
        <td th:text="Id"></td>
        <td th:text="名字"></td>
        <td th:text="密码"></td>
        <td th:text="性别"></td>
        <td th:text="班级"></td>
        <td th:text="生日"></td>
        <td th:text="操作"></td>
    </tr>
    <tr th:each="student:${students}">
        <td th:text="${student.id}"></td>
        <td th:text="${student.name}"></td>
        <td th:text="${student.password}"></td>
        <td th:text="${student.sex}"></td>
        <td th:text="${student.clazz}"></td>
        <td th:text="${student.birthday}"></td>
        <td ><a th:href="@{/Student/delete.do(id=${student.id})}">删除</a></td>
    </tr>
</table>
<nav aria-label="Page navigation example">
    <ul class="pagination">
        <li class="page-item"><a class="page-link" href="#">Previous</a></li>
        <li class="page-item"><a class="page-link" th:href="@{/Student/list.do/1/3}">1</a></li>
        <li class="page-item"><a class="page-link" th:href="@{/Student/list.do/2/3}">2</a></li>
        <li class="page-item"><a class="page-link" th:href="@{/Student/list.do/3/3}">3</a></li>
        <li class="page-item"><a class="page-link" href="#">Next</a></li>
    </ul>
</nav>
<script src="/bootstrap/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
</body>
</html>

